Meta-data for single development test environment

ABSTRACT

System and method for generating meta-data for a product is disclosed. An artifact repository stores first artifacts for building the product. The artifact repository stores first meta-data for one or more of the artifacts in the repository. A build manager builds second artifacts for the product from source code and one or more of the first artifacts based on information in a project script. The build manager is adapted to combine the first meta-data for each of the one or more of the first artifacts used to build the second artifact to form second meta-data for each of the second artifacts.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application relates to U.S. Patent Application, entitled “VERSIONNUMBERING IN SINGLE DEVELOPMENT AND TEST ENVIRONMENT,” filed herewithand U.S. Patent Application entitled “SINGLE DEVELOPMENT TESTENVIRONMENT,” filed herewith, which are hereby incorporated by referencein their entirety.

TECHNICAL FIELD

The present invention relates generally to a system for continuoussystem development and continuous integration methodologies.

BACKGROUND

Software development is complex and expensive. Many techniques have beendeveloped to attempt to reduce the complexity, produce more reliablesoftware, and reduce the expense.

Many software development projects use a waterfall development process.A waterfall process is a sequential software development process, thathas, for example, phases of conception, initiation, analysis, design,construction, testing, production and maintenance. The waterfalldevelopment process has been very successful, especially for largeprojects in which the final product is well-defined and unlikely tochange significantly once finished. The waterfall process, however, isnot suitable for software that is continuously being improved, becauseeach improvement has to go through all of the stages above beforefinally being incorporated into the product. The waterfall process leadsto a sequential approach in which each new feature to be added to theproduct must be added in sequence and tested before the next feature canbe started.

In recent years, software projects have become larger, relying on largestable, prewritten components being connected together to form thesoftware. Each of the prewritten components may gradually evolve as bugsare fixed and new functionality is added. However, the basicfunctionality of each prewritten component remains the same. Thus,software development is about connecting together these prewrittencomponents and checking that the changes to the prewritten components donot adversely affect the software as a whole. Any software project maycomprise a large number of these prewritten components, all of which maybe constantly evolving. The waterfall process is a slow and expensivemethod to test and deploy software written in the above manner, causingunnecessary delays in the time it takes a customer to receive updatedsoftware that is more reliable and has more features.

SUMMARY

The systems and methods described herein attempt to overcome thedrawbacks discussed above.

In one embodiment, a system for generating meta-data for a product isdisclosed. An artifact repository stores first artifacts for buildingthe product. The artifact repository stores first meta-data for one ormore of the first artifacts. A build manager builds second artifacts forthe product from source code and one or more of the first artifactsbased on information in a project script. The build manager is adaptedto combine the first meta-data for each of the one or more of the firstartifacts used to build the second artifact to form second meta-data foreach of the second artifacts.

In another embodiment, a method for generating meta-data for a productis disclosed. An artifact repository stores first artifacts for buildingthe product and first meta-data for one or more of the stored firstartifacts. A build manager builds second artifacts for the product fromsource code and one or more of the first artifacts based on informationin project meta-data. The build manager combines the first meta-data foreach of the one or more of the first artifacts used to build the secondartifact to form second meta-data for each of the second artifacts.

In yet another embodiment, a machine-readable tangible andnon-transitory medium with information recorded thereon, wherein theinformation, when read by a machine, causes the machine to store, by anartifact repository, first artifacts for building a product and storing,by the artifact repository, first meta-data for one or more of thestored first artifacts. The information causes the machine to build, bya build manager, second artifacts for the product from source code andone or more of the first artifacts based on information in projectmeta-data. The information causes the machine to combine, by the buildmanager, the first meta-data for each of the one or more of the firstartifacts used to build the second artifact to form second meta-data foreach of the second artifacts.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings constitute a part of this specification, andillustrate embodiments of the invention and together with thespecification, explain the invention.

FIG. 1 illustrates a cloud appliance according to an embodiment.

FIG. 2 illustrates a system for continuous integration for buildingcloud appliances, according to an embodiment.

FIGS. 3A and B illustrate examples of revision numbers in a source codemanagement repository, build numbers, and the artifact numbers,according to embodiments of the disclosure.

FIG. 4 illustrates meta-data files for artifacts used according toembodiments of the disclosure.

FIG. 5A-D illustrates a method of building a cloud appliance accordingto an embodiment.

FIG. 6 illustrates a method of generating version numbers for artifactsin a build process according to an embodiment.

FIG. 7 illustrates a method of generating meta-data for artifacts in abuild process according to an embodiment.

FIG. 8 illustrates a general computer architecture on which the presentembodiments can be implemented.

DETAILED DESCRIPTION

As noted above, many software development projects use a waterfalldevelopment process. Continuous integration is an alternative method forsoftware development that is quite different from the waterfall approachto software development. In continuous integration, the implementationand the release of new features are carried out in small increments. Anadvantage of continuous integration is in preserving existing productfunctionality while continuously implementing new features. Continuousintegration enables much smoother and more frequent customer releases,and works well for software products in a fast moving environment inwhich new features are constantly added.

In continuous integration, developers are encouraged to frequentlyincorporate changes into the mainstream source code. This must be doneby a highly automated procedure that is rigorously followed so that anyregression can quickly be identified and fixed as regression occurs.

In continuous integration, new code is committed by developersfrequently so that other developers are aware of, and able to determinethe affect of, the changes in the committed new code. Thus, errors donot arise without developers noticing the errors and correcting theerrors immediately. A new build may be triggered by every commit to arepository, rather than a periodically scheduled build. Inmulti-developer environments with a short interval between commits bydifferent developers, it is better to delay building for a short timeafter each commit to reduce the burden on the build environment.Continuous integration tools such as CruiseControl™, Jenkins™, Hudson™,Bamboo™, BuildMaster™, or Teamcity™ offer this scheduling automatically.

A high level of automation is required because at any moment in timethere may be hundreds of source files for the code with complexdependencies. A build of the source code uses the latest version in thesource files, and it is difficult to figure out by hand which parts ofthe source code are already compiled or should be recompiled. Developersrequire that the latest version of every source file is included in thecompiled code when doing testing and debugging. Moreover, once asuccessful build is complete, it is important to be able to trackaccurately versions of the source files that produced the successfulbuild. If testing of the above working build is also successful, thenthe source code of the successful build can be incorporated into alarger system. However, the source code for the successful build must beidentified, and the development team may already have written newversions of portions of the source code to implement the next featurewhile the above testing was in process.

Thus, a key component of an automated environment is a source codemanagement repository through which all changes to source code,packaging, databases, configurations, etc. are made. A typical sourcecode management repository enables developers to track version history,releases, and parallel versions (i.e., branches) of all products. Italso enables developers to retrieve previous versions of a productcomponent or release for building, testing, debugging, etc.

For cloud system development there are, however, many types of files inthe source code management repository, third party repositories, andopen source repositories that are not found in standard softwaredevelopment environments. Cloud development not only includes thedevelopment of programs that run on a single computer or group ofcomputers, but also includes directories, files and formats that specifyvirtual machines on which the programs will run, directories, files andformats that specify the configurations of the virtual machines, anddirectories, files and formats that specify the interconnection of thevirtual machines. Moreover, these directories, files, and formats may bein the form of source files, compiled files, or archive files. Suchdirectories, files, and formats include, for example open virtualizationformat (OVF) files that package virtual appliances, and the archiveformat of the OVF directory, the OVA package. The OVF format provides acomplete specification of the virtual machine. This includes the fulllist of required virtual disks and the required virtual hardwareconfiguration, including CPU, memory, networking, and storage. Anadministrator can quickly provision this virtual machine into virtualinfrastructure with little or no manual intervention. In addition, theOVF is a standards-based, portable format that allows the user to deploythis virtual machine in any hypervisor that supports OVF.

For continuous integration to work all of these files that are notsource code are under the control of a revision control system. Thesenon-source-code files are known as artifacts and all artifacts requiredto build the project are placed in an artifact repository. Thus, thesystem should be buildable from a commit and not require additionaldependencies available in an inaccessible repository.

FIG. 1 illustrates a cloud appliance 100. The cloud appliance 100 ishosted on a computer 105. The appliance 100 comprises virtual machines110, 115, 120, 125. The virtual machines are connected by virtualnetwork 130. The virtual machines comprise a virtual CPU, memory,networking, and storage. For example, virtual machine 110 comprisesvirtual CPU 135, memory 140, network adapter 145, and storage 150. Thestorage 150 may comprise one or more virtual disks 155. The virtualdisks 155 include operating systems, drivers, and application softwarethat run on the virtual machine 110. These virtual machines 110, 115,120, 125 may be configured to perform particular tasks. For example,virtual machine 110 may be configured as a Web server, virtual machine115 may be configured as a mail server, virtual machine 120 may beconfigured as a database server, and virtual machine 125 may beconfigured as a firewall and gateway. The virtual machines may beconnected to a real network. For example, virtual machine 125 isconnected to a network 160. Thus, the cloud appliance 100 is configuredto serve web pages, provide e-mail service, and database services tousers, via the network connection 160. The appliance 100 may be providedas a single software package. The software package may be, for example,in the form of one or more .OVA files as discussed above. The .OVA filemay contain one or more OVF packages, each package defining one of thevirtual machines 110, 115, 120, 125.

The software package for the appliance 100 may be a very complex packageto build and test. A large number of source files are maintained, andbuilt in the correct order to produce the software package for theappliance 100. To construct the software package for the appliance 100,application files are written and tested for each of the virtualmachines. The application files are tested on real machines or virtualmachines before the applications are installed on the virtual machinesof the cloud appliance 100. Templates for each of the virtual machinesare purchased or written. The templates for the virtual machines areinstantiated into virtual machines on one or more servers, and if theinstantiated virtual machine is not preloaded with an operating system,an operating system is loaded onto the virtual machines. The virtualmachines are then configured, for example, to communicate with othervirtual machines via a network. One or more applications, drivers,databases, etc. may then be installed or loaded onto the virtualmachines. The virtual machines are tested to ensure that the operatingsystems and applications that have been installed perform correctly.When the testing is complete, the virtual machines may be further testedas a part of the cloud appliance 100. If the cloud appliance 100 passesall of the tests, the software package for the appliance 100 can bebuilt and deployed, for example, as one or more .OVA files.

A change in any one of the templates, the applications, or the operatingsystems, causes the build and the test of the software package of thecloud appliance 100 to be repeated. If, for example, a bug is found inan application, the bug is fixed and the source files for theapplication updated. The application is then tested to check that thebug is corrected and that no new bug has been introduced. The virtualmachine that runs the application is then rebuilt with the revisedapplication. The virtual machine that runs the application is thenretested, because although the application may run perfectly on a testmachine, the revised application may not run perfectly on the virtualmachine. The rebuilt and tested virtual machine is then configured toconnect to the other virtual machines in the cloud appliance 100, andcloud appliance 100 is tested. The virtual machines that do not run therevised application do not need to be rebuilt and tested individually,however, the cloud appliance 100 should be tested with the revisedapplication. Building the entire cloud appliance from the source filesand templates is time-consuming. Testing applications and virtualmachines is also time-consuming. Therefore, systems that can track whichsource files are to be recompiled, and which tests are to be done basedon changes to the source files are advantageous. For continuousintegration to work effectively, the build and test is as automated aspossible. If the build and test is not automated, it can rapidly becomedifficult to determine which source files are the current source files,which versions of the cloud appliance 100 are working versions, andwhich features that these working versions enable.

Automating the build of the cloud appliance 100 is not straightforwardbecause unlike a software build for, for example, an application thatruns on a single machine, the source files for building the cloudappliance 100 are far more diverse. The source files include, sourcefiles written in computer languages such as C, C#, C++, Java, BASIC,etc. The source files also include precompiled applications, drivers,libraries, etc., for example, .DLL files, .EXE files, .JAR files, .TARfiles etc. as well as the OVF and OVA files discussed above. The reasonfor the diversity in files is that the virtual machines can be a loadedwith software run on a standalone machine. Thus, for example, a build ofthe cloud appliance may include running the install files for anapplication like a word processor, a mail program, or a web serverapplication on the virtual machine. Such processes would normally becarried out by a system administrator or machine owner. In the cloudappliance build, these installations are automated by using, for exampleWindows PowerShell™ scripts.

A separate issue with building cloud appliances, for example, theappliance 100, is keeping track of licensing and payment for all of thecomponents used to build the cloud appliance. For example, one versionof the cloud appliance 100 may use an application that has a generalpublic license. A subsequent version may replace the above applicationwith a commercial piece of software that requires a license and licensefees. In continuous integration, the licensing may change from built tobuild depending on the combination of applications, operating systems,and virtual machines in use. Due to the large number of thesecomponents, automatic tracking of licensing for any particular versionof the cloud appliance becomes advantageous.

FIG. 2 illustrates a system 200 for continuous integration for buildingcloud appliances, according to an embodiment. The system 200 comprises anumber of servers, including source code management server 205, acontinuous integration server 235, a test environment server 250, and anartifact repository server 260 that stores artifacts 285.

The source code management server 205 manages source code beingdeveloped for cloud appliances, for example, cloud appliance 100.Developers 225 write source code 210 and project scripts 215 forproducing the cloud appliances. In some embodiments, the project scriptshave associated meta-data for specifying information such as artifacts285 to be used for the project. The source code includes code forapplications to run on the virtual machines of the cloud appliance,drivers to run on the cloud appliance, etc. The project scripts 215include scripts for assembling the virtual machines, for example,installing software on a virtual machine, configuring a virtual machineto connect to another virtual machine, configuring the order in whichvirtual machines are instantiated and connected. The source codemanagement server 205 also manages test scripts 220. The test scripts220 are written by testers 230. The test scripts 220 of the testingapplications, drivers, virtual machines, and cloud appliances. The testscripts 220 are used by the test environment server 250 to run tests onportions of a cloud appliance. The source code management server 205 maybe, for example, a server running Apache™ and Subversion®. The sourcecode management server 205 is a version control system that keeps trackof changes made to files and directories, providing data recovery andhistory of the changes that have been made to source code anddocumentation over time. Thus, each time a new version of a portion ofthe source code, project scripts 215 or test code is changed, the sourcecode management server 205 keeps a record of the changes and updates theversion numbers, according to a predetermined system for determiningversion numbers. The source code 210, project scripts 215, and testscripts 220 are stored in a source code management repository 222.

Although the terms “version number” and “revision number” are usedthroughout the disclosure, it should be understood that version numbersand revision numbers may include any combination of one or more numbers,letters, or any other characters for identifying a version or revision.Thus, for example, a revision number might be “Fred2.12/25/11.” Anystring of characters that may be used to identify a version or revisionof an artifact, source code, or script is considered to be a versionnumber or revision number.

To develop the source code 210, build scripts 215 and test scripts 220,the developers 225 use Integrated Development Environments (IDEs).Possible (IDEs), include, for example, Eclipse™ NetBeans™ and VisualStudio™. These environments may exist on the developer's desktop, or ona server and enable the creation of applications written in Java, C andother languages. IDE integration tools exist to enable developers tocheck source code 210 and other product components in and out of thesource code management repository 222. Additional IDE tools exist toenable building and testing of product components prior to commitment.

The build is an important activity in continuous integration. There aretwo types of builds. The first type is called a private build. Theprivate build is done by the developer prior to committing changes tothe source code management repository 222. The private build allows thedeveloper 225 and the tester 230 to verify new functionality and checkfor regression at a module level of the source code 210. A private buildcompiles new source code 210, and unit tests the resulting binary code.Verification of new functionality will typically require that new unittests be developed as well. If a private build fails, it is theresponsibility of the developer to correct the build before committingthe source code 210 into the source code management repository 222.

The second type of build is an automated build, which is carried out bythe continuous integration server 235 following a commit to arepository. The automated build allows verification of new functionalityand checking for regression at the product level. Regression is testedfor by running one or more tests written for previous versions of thecloud appliance. The previous versions of the cloud appliance pass thosetests and, therefore, if the new version does not pass those tests thenthe cloud appliance has regressed. The second build is extensive andincludes automated code inspection, compilation, unit testing,packaging, deployment, installation, and configuration on one or moretest servers, and additional component testing. A number of tools can beused for the continuous integration server 235, for example,CruiseControl™, Jenkins, Hudson, Bamboo™, BuildMaster™, or Teamcity™. Ifan automated build fails, then the entire development team isresponsible for diagnosing and fixing the problem or reverting to aprevious version of the cloud appliance contained in the source codemanagement repository 222. The continuous integration server 235notifies the development team of a build failure, using, for example,email, or instant messaging.

The continuous integration server 235 calls build managers 237 to buildthe source files in the source code management repository 222. Buildmanagers include for example, Apache Maven™ or MSBuild™. Thus, if asource file is written in, for example, Visual C#™, MSBuild™ may becalled by the continuous integration server 235 to build that sourcefile. If a source file is written in Java™, Maven™ may be called tobuild that source file. The continuous integration server 235 can beconfigured to start automatically a build of the cloud appliance eachtime new source code 210 is committed to the source code managementrepository 222. In some embodiments, the continuous integration server235 can be configured to automatically start a build of the cloudappliance each time new artifacts 285 are committed to the third-partyrepository 275 or the open source software repository 280. Thecontinuous integration server 235 may check before performing the buildthat the project has a dependency on the newly committed source code 210or artifacts 285 before beginning a new build. In some embodiments, thecontinuous integration server 235 may begin a new build following aparticular schedule, for example, once every day. In some embodiments,the continuous integration server 235 performs a build when manuallystarted by an operator. In some embodiments, the continuous integrationserver 235 is configured to begin a build following an algorithm, forexample, a build begins when three or more different developers havecommitted code, or a build begins a predetermined time after the lastcommit, each new commit restarting a timer for the predetermined time.

The continuous integration server 235 implemented with Hudson isparticularly well integrated with the build manager Maven™. Hudson isable to parse Maven Project Object Model (POM) files written for Maven™.This allows the Hudson continuous integration server to read the projectdependencies. Thus, a Hudson continuous integration server is able toautomatically check the dependent files in the source code 210, projectscripts 215, test scripts 220, and any third party repository or opensource code repository, for new versions of files. If a new version ischecked in for any of the above source code 210, project scripts 215,test scripts 220, third party repositories or open source coderepositories, the Hudson continuous integration server rebuilds thecorresponding project. The third party repositories or open source coderepositories may include third party repository 275 or open source coderepository 280 maintained by the artifact repository server 260, or anyother repositories private or public accessible via a computer network.

The Maven build manager and Maven POM files are very flexible. The POMfiles can be configured to inherit properties from one another. POMfiles inherit dependencies, developers and contributors, plug-in lists,report lists, plug-in executions with matching ids, and plug-inconfigurations. POM files are written in XML.

Maven also allows plug-ins to be written to extend the capabilities ofMaven. Plug-ins can be written to provide core functions such as compilesource code 210, deploy a particular form of artifact. Plug-ins can alsobe used to provide functionality to a package, to build output inparticular forms such as java archive JAR or enterprise archive EAR, andto build reports.

Plug-ins can also be built that allow Maven to process additional typesof file. In the case of building cloud appliances, this is usefulbecause there are many types of file not usually found in source code210 or repositories. For example, .OVA files and OVF directories wouldnot normally be part of the source code 210, but are a portion of thebuild for a virtual machine. Similarly, the applications and drivers(.EXE files) and dynamic link libraries (.DLL files) that are to beinstalled on the virtual machine are not the usual types of files foundin source code 210. In addition, these files may require unusualtreatment. For example, to build a customized virtual machine, an .OVAfile in the third party repository that forms a template for a virtualmachine is first untared in to an OVF directory then installed on ahypervisor. When installed, .EXE files may be executed on the virtualmachine to install software. Windows PowerShell™ commands may be used toperform some or all of the above. The Windows PowerShell™ commands beingin the form of either .PS1 files or as cmdlets that are .NET programscompiled into dynamic link library files. Thus, with plug-ins for .OVAfiles, OVF directories, .EXE files, .DLL files and .PS1 files, Maven iscapable of recognizing the file types and automatically performing theappropriate steps.

In the first step of an automated build and test, the continuousintegration server 235 downloads from the source code management server205, the files describing the project, for example, POM files in thecase that the project is documented in Maven format. The continuousintegration server 235 also downloads from the source code managementserver 205 other support files. Next, the continuous integration serverstarts the appropriate build manager 237 for the project scripts 215. Insome embodiments, the source code 210 may be parsed for errors beforestarting a build manager. As each of the files is parsed, the results ofthe parsing are documented and stored in the build repository 263. Insome embodiments, the parse results are stored with the same versionnumber as the source code 210. This allows the parsing results to becorrelated with the source code 210. If, during the testing, source code210 fails any of the parsing, the developers and the build manager 237are informed of the failure and the nature of the failure. Thedevelopers and the build manager 237 may be informed by e-mail, textmessage, instant message, or by any other method compatible withembodiments of the disclosure. In some embodiments, the parsing failureinformation may include the version number for the source code 210. Ifany of the parsing tests generate a fatal error, then the build isstopped, and the developers are informed.

In some embodiments, the continuous integration server 235 may startmore than one build manager. For example, if the project is very large,and can be divided into parts then separate build managers 237 may bestarted to build the separate parts. If, for example, some of theproject scripts require different build managers, for example, some ofthe source files require MSBuilder, and other files require Maven, morethan one build manager 237 may be started and the appropriate sourcefiles provided to the corresponding build manager 237. If more that onebuild manager 237 is started, the artifacts 285 used by one buildmanager 237 may be subsequently used by another of the build managers237. For example, if a portion of the source files requires MSBuilder,those files may be built by MSBuilder to form .EXE files. These .EXEfiles may then be used by a Maven build manager. In some embodiments, abuild manager 237 may start a separate build manager 237. For example, abuild manager 237 based on Maven might include a plug-in. The plug-inmight allow Maven to start a copy of MSBuilder if the source files thatMaven is given correspond to source files for MSBuilder. MSBuilder thenbuilds the artifacts 285 while Maven continues to build other files. Thebuild managers 237 compile the source code 210 written in, for example,Java or C# into, for example, .EXE or .DLL files. The build manages 237also gather other artifacts 285 required for the build from in house andthird party repositories. The gathered files include, for example, filesfor installation packages, configurations, tools, utilities, databases,and documentation, databases, web pages etc. A build failure during anyof the builds causes the build and any parallel builds to cease andmessages are sent to the developers and the build manager 237 indicatingthe cause of the failure. As the artifacts 285 are built or gathered,the artifacts 285 are stored in the build repository 263. The artifacts285 are stored with appropriate unique version numbers so that the buildcan be identified. In some embodiments, the unique version number isautomatically generated and assigned during each build. This versionnumber identifies the components that were used to produce each artifactand enables an artifact to be reproduced in the future if necessary.

When building the cloud appliance, the continuous build manager 237 usesthe latest committed source code 210 in the source code managementrepository 222. When the build is complete, the build is deployed andtested. In continuous integration, builds occur frequently, often eachtime new source code 210 is committed into a repository. Thus, the newbuilds may occur before testing on a previous build is complete. In maybe several days after the build that testing is complete. Although afirst build may work perfectly and pass all the tests, a subsequentbuild, although incorporating more features, may be regressive and notpass all of the tests. Thus, it may be appropriate to release the firstbuild, but not to release subsequent builds until one of the subsequentbuilds incorporating the new features passes all the tests. The artifactrepository may be filled with a large number of builds with varyingnumbers of features. Some of the builds may pass all tests and,therefore, be releasable, other builds may not pass all the tests and,therefore, may not be releasable. A release manager 245 is informedwhich of the builds are suitable for release. The release manager 245then rebuild from scratch, the releasable code into a release repository270. An issue that is faced by the release manager 245 is identifyingthe source 210 and third-party files that were used to construct thereleasable build. In waterfall development, this is not an issue becauseonly the latest build from the latest committed source code 210 could bethe source code 210 for the release build. However, in continuousdevelopment, there are many builds to choose from. Therefore, a link isrequired between artifacts 285 built and the source code 210 and otherartifacts 285 used to build the artifacts 285.

As noted above, the source code management repository 222 keeps track ofversion numbers for the latest committed source code 210, and allprevious versions of the source code 210. Therefore, one method toidentify the source code 210, corresponding to a particular build, is tolink the version number of the artifacts 285 in the build to the versionnumber of the source code 210 in the source code management repository222. Thus, for example, the continuous integration server 235 may beconfigured to read the version number of the most recent source code 210committed the source code management repository 222 and construct theversion number for the artifacts 285 in the build based on the versionnumber of the most recent source code 210. Version numbers for softwareare often integer numbers separated by periods as delimiters, forexample, 1.0, 1.5, 2.0, 2.1, etc. The first integer indicates a majorrevision in the software that incorporates major new features. Thesecond integer after the period indicates minor revisions to the majorrevision such as bug fixes, etc. However, as noted above, any string ofcharacters that may be used to identify a version or revision of anartifact, source code, or script is considered to be a version number orrevision number. The version numbers, for example, may consist of asingle string of characters, or separate strings of charactersrepresenting major and minor revisions, wherein the strings areconcatenated together. In continuous integration, there may be manyversions of the cloud appliance generated between each minor revisionsuitable for release. Therefore, adding an additional period to acurrent product version number, followed by an additional string ofcharacters generated based on the version of the source code in thesource code management repository 222 is a convenient way to produce aversion number for each artifact. Those artifact numbers allow thesource code 210 that was used to generate the artifacts 285 in anyparticular build to be identified. In some embodiments, the additionalstring of characters is identical to the version number of the mostrecent source code 210. For example, if the most recent version of thesource code 210 is 102, and the current product version number is 1.1,then the version number for the build of the artifacts may be 1.1.102.The next revision of the source code 210 may be 103, in which case theversion number for the artifacts would become 1.1.103. In someembodiments, the revision numbers, in the source code managementrepository 222 may follow a similar pattern to software releases, havinga first string of characters indicating a major revision followed by aperiod and then a second string of characters indicating minorrevisions. In such embodiments, the artifact version number may beconstructed by adding a period to the product version number and thenconcatenating the entire revision number for the source code 210. Insome embodiments, the period separating the portions of the versionnumbers may be omitted or replaced by any delimiter character or stringof characters compatible with embodiments of the disclosure.

FIG. 3A illustrates examples of revision numbers in a source codemanagement repository, build numbers, and the artifact numbers generatedby the above system and methods. Thus, if the product version number is1.1, and the source code version number is 5.1, then the artifactversion numbers in the build would become 1.1.5.1. If a cloud applianceneeds to be constructed from scratch the version numbers of theartifacts 285 can be read and the cloud appliance rebuilt from theappropriate source code 210.

In some embodiments, the version number of the source code ismanipulated before being incorporated into the version number for thebuild artifacts 285. For example, the source code version number may bemultiplied by a predetermined number. Alternatively, the source codeversion number may have a predetermined number added. In someembodiments, the source code version number may have one or morecharacters omitted. In some embodiments, the source code version numbermay have one or more characters inserted or replaced. In someembodiments, the source code version number may have one or morecharacters appended to the beginning or the end. In some embodiments,any manipulation of the source code version number, and any method ofcombining the source code version number with a product version number,compatible with embodiments of the disclosure is within the scope of thedisclosure.

The version of the source code number used to form the artifact versionnumbers may be the only revision number if only one set of source codeis extracted from the source code repository to build the artifact. Ifmultiple sets of source code are extracted from the same repository,then each set of source code will have an associated revision number.The build manager may select the highest revision number from among theassociated revision numbers. Alternatively, the build manager maycombine the associated revision numbers to form a combined versionnumber. The combined version number may identify each set of code with acorresponding version number.

In some embodiments, the build manager updates the version number of theartifact within meta-data associated with the artifact and the updatedmeta-data is uploaded into the artifact repository with the artifact. Insome embodiments, the build manager appends the artifact version numberto the name of the artifact or to a folder containing the artifact.

In some embodiments, the build manager updates the artifacts versionnumber within meta-data associated with the artifact and the updatedmeta-data is uploaded into the artifact repository with the artifact. Insome embodiments, the build manager appends the artifact version numberto the name of the artifact.

As noted above, there are many ways to construct an artifact number.Depending upon a phase of development of a cloud appliance, or aparticular task being performed it is useful to be able to change theway that version numbers for artifacts are generated depending upon thetask. One method to change the way that version numbers for artifact aregenerated is to use tag words associated with build commands to specifyhow to form the artifact number. The tag words may be, for example,placed in script files or used on a command line or place in meta-datafiles for artifacts or projects. For example, a command, script ormeta-data with x.y.[BUILD] would cause the build engine to create aversion number x.y. concatenated with the version of the source codeused to build the artifact. Thus, the tag word [BUILD] is replaced bythe version number of the source code used to build the artifact. Othertag words may be used to indicate different substitutions thus forexample x.y.[DATE] may cause a version number x.y. concatenated with thecurrent date.

In some embodiments, source code from more than one source codemanagement repository 222 may be used to build the cloud appliance.Thus, more than one source code repository version number may berequired to identify all of the source code. The version number of theartifacts 285 built may include, therefore, version numbers from morethan one repository. The version numbers of source code from thedifferent repositories may be combined, for example, by concatenation,one after another, either before or after the version build number toform the version number for the artifact 285. In a similar manner,version numbers from third-party resources or repositories may becombined, for example, by concatenation to form the version number forartifacts 285 resulting from a build. FIG. 3B illustrates examples ofversion numbers in an source code management repository, version numbersin a third party repository, build numbers, and the artifact numbersgenerated by the above concatenation system and methods. In someembodiments, any of the above source code or third party version numbersmay be mathematically manipulated or manipulated as strings by, forexample, omission, replacement, or addition, of characters before beingincorporated into the version number for each artifact of the build.Version numbers for the artifact constructed in the above manner, allowthe version of source code and the third-party repository versionresponsible for the build to be identified.

The artifacts 285 in the third-party repository 275, or artifacts 285built by the build manager 237 may have meta-data associated with theartifacts 285. For example, some of the software in the third-partyrepository may require a license to be used, may require certainprerequisites, for example, a particular amount of memory or disk space,or may have particular documentation associated with the artifact suchas help files. If the build manager 237 is Maven, and the artifacts 285are stored in a maven repository, the meta-data can be contained in POMfiles associated with the artifacts 285. In some embodiments, thecontinuous integration server 235 is capable of reading the meta-dataassociated with the artifacts 285. As new artifacts 285 are generated bythe build manager 237, the build manager 237 reads the meta-data forsource code 210 and artifacts 285 used to generate the new artifacts285. The build manager 237 combines the meta-data all the artifacts 285used to generate the new artifacts 285 to form meta-data for the newartifact. Finally, the build manager 237 can combine meta-data for allof the artifacts 285 generated in the build into a single meta-data filefor the build. In this manner, a file is generated containing thecombination of meta-data for all of the components of the build. Thus,for example, the meta-data file for the build contains all the licenseinformation required to use the build. Moreover, the meta-data file forthe build may contain all the resource requirements to run the build.Because the meta-data file for the build can be built along with theartifacts themselves, any changes to artifacts 285 required for thebuild are automatically reflected in the meta-data for the build.Therefore, if the meta-data for each artifact 285 is updated, buildingthe cloud appliance automatically generates, for example, licenseinformation, help files, prerequisite information, etc. for the cloudappliance. Changes in the artifacts 285 used in subsequent builds of thecloud appliance are immediately reflected in the license information,help files, and prerequisite information in the subsequent builds. Thissaves considerable time deploying a new build, and reduces the burden ofchecking for license compliance and time wasted attempting to deploy acloud appliance on unsuitable hardware or hypervisor. In someembodiments, the cloud appliance installation software can automaticallybe configured to request licenses based on the meta-data for the cloudappliance generated using the above process. Further, the costs of a newbuild can be automatically calculated based on the license fees requiredto install and use that particular build based on the meta-data for thebuild.

In some embodiments, the build manager 237 is capable of checking andremoving redundant information in the meta-data generated for newartifacts 285 or for a build. For example, two artifacts 285 used for abuild may require the same license. The build manager 237 identifiesthat the same license is listed twice and removes the duplicateinformation. In another example, one artifact 285 may requiresignificantly greater resources than other artifacts 285, for example,processing speed. In this example, only the highest processing speed mayneed to be listed in the meta-data for the build. However, requiredstorage space will likely be additive. Thus, the total storage spacerequired for the build will be the addition of the storage spacerequired for each of the artifacts 285 used for the build. In someembodiments, the build manager 237 retains and labels the meta-data foreach artifact in the meta-data for the build, but also adds additionalinformation regarding the build. For example, the meta-data for thebuild lists the storage requirements for each of the artifacts 285individually, but also calculates and lists the total storage spacerequired. In this manner, the developers can use the meta-data for thebuild to diagnose which artifact cause which fraction of the resourceuse, or costs for licensing.

In some embodiments, the build script for the cloud appliance detailsnot only how to compile source code 210 to binary files, such as .EXE orDLL files, but also details how to generate documentation, licensing,resource requirements, website pages, statistics and distribution media(such as Windows MSI files, RPM or DEB files). In some embodiments, anydocumentation, resource requirements, license requirements, or any otherinformation for the artifacts 285 or source code 210 compatible withembodiments of the disclosure may be placed in meta-data for the sourcecode 210 or artifacts 285. Moreover, any of the above information inmeta-data files for the artifacts 285 all source code may be combined toform new meta-data in any manner compatible with embodiments of thedisclosure. Examples of other features that can be included and combinedin meta-data files include:

1. A cost of a component, the cost can be totaled in a meta-data filefor an artifact based on the cost of for each component, as detailed ina corresponding meta-data file for each component. The price of asoftware solution based on the artifact would then be known from thebuild.

2. A source of the artifact and how and where it was obtained, based onthe information detailed in a corresponding meta-data file for eachcomponent of the artifact.

3. A type of the artifact and how it was produced, based on theinformation detailed in a corresponding meta-data file for eachcomponent of the artifact.

4. A documentation requirement for the artifact, based on theinformation detailed in a corresponding meta-data file for eachcomponent of the artifact.

5. Support Instructions for the artifact including how and where toobtain support for the artifact and which portions of the artifact areor are not supported, based on the information detailed in acorresponding meta-data file for each component of the artifact.

6. Installation and configuration instructions for the artifact, basedon the information detailed in a corresponding meta-data file for eachcomponent of the artifact.

7. End-of-life information for the artifact, based on the informationdetailed in a corresponding meta-data file for each component of theartifact.

8. Manufacturing instructions including additional assembly anddistribution steps for the artifact, based on the information detailedin a corresponding meta-data file for each component of the artifact.

9. Known limitations of the artifact, based on the information detailedin a corresponding meta-data file for each component of the artifact.

FIG. 4 illustrates meta-data files 410, 420, 430 for artifacts 1, 2, and3. Each meta-data file specifies a license that is required, resourcesrequired, for example, memory, and documentation required, for example,help files. The continuous integration server 235 notes that artifacts1, 2, and 3 are required for the build of the cloud appliance,therefore, the build manager 237 generates a meta-data file 440 for thebuild of the cloud appliance. When generating the meta-data file 440,the build manager 237 notes that one copy of License A and one copy oflicense B is required, that a total of 7 GB of Random access memory(RAM) is required, that a clock speed of at least 2.8 GHz is required,and that copies of Help files 1 and 3 are required. The build manager237 generates the meta-data file 440, with the above information, asillustrated in FIG. 4.

When all of the artifacts 285 have been saved in the artifact repository282, along with any meta-data, the continuous integration server 235 mayinitiate unit tests on artifacts 285 created in the artifact repository282. For example, executable files (.EXE files) can be installed oneither a virtual machine or a real machine in, for example, the testenvironment server 250. The operation of each of these executable filescan then be tested using corresponding test scripts 220, retrieved fromthe source code management repository, in accordance with test scriptinformation stored in the project scripts 215. As each of the tests isperformed by the test environment server 250, the results of the testsare documented and stored in the build repository 263. Unit testingframeworks such as, for example, JUnit and NUnit can be used to performsuch tests.

In some embodiments, the test results are stored with the same versionnumber of the artifacts 285 produced during the build. This allows thetest results to be correlated with particular builds. If, during thetesting, the executable file fails any of the tests, the developers 225and the build manager 237 are informed of the failure and the nature ofthe failure. The developers 225 and the build manager 237 may beinformed by e-mail, text message, instant message, or by any othermethod compatible with embodiments of the disclosure. In someembodiments, the test failure information may include the version numberfor the build.

When the unit tests of any artifacts 285 are complete the continuousintegration server 235 builds the virtual machines for the cloudappliance specified by the project script 215. To build each virtualmachine, the continuous integration server 235 instantiates a virtualmachine from a template specified in the project scripts 215 on ahypervisor. When the virtual machine is running, the continuousintegration server 235 identifies installation packages, configurations,tools, utilities, databases, documentation, web pages etc. specified bythe project scripts 215 and installs the identified installationpackages, configurations, tools, utilities, databases, documentation,web pages etc. onto the virtual machine. When all of the installationpackages, configurations, tools, utilities, databases, documentation,web pages etc. have been installed, and the virtual machine has beencustomized, an OVF directory of the customized version machine isgenerated. In some embodiments, the OVF directory is stored in the buildrepository 263. In some embodiments, the OVF directory is converted to a.OVA file and stored in the build repository 263.

Customization of the virtual machine generated from the virtual machinetemplate is customized using, for example, Windows PowerShell™ scriptfiles, install packages, etc. in much the same way that a stand-alone PChas software installed by a user. The power script files allowconfigurations that would be input by a user using, for example, dialogboxes on a stand-alone PC to be replaced by instructions in the WindowsPowerShell™ script files.

In some embodiments, the customize virtual machine is customized in thetest environment server 250. In this case, the test environment server250 may comprise one or more hypervisors on which to install virtualmachines of the cloud appliance. The continuous integration server 235,based on information in the project scripts for the project, identifiesthe templates for the virtual machines from the build in the buildrepository 263 and uses the templates to install virtual machines in thetest environment server 250. The build manager 237, based on informationin the project scripts for the project, identifies installationpackages, configurations, tools, utilities, databases, documentation,web pages etc. to be installed on each of the virtual machines, andinstalls each of these features on the corresponding virtual machine toform a customized virtual machine.

In some embodiments, the customized virtual machine is installeddirectly from the build repository onto the test environment hypervisor,the customize virtual machine having already been built and customizedon a different server.

When the customized virtual machines have been installed, the continuousintegration server 235, initiates tests specified in the project scripts215 to be performed on the customized virtual appliance. As each of thetests is performed by the test environment server 250, the results ofthe tests are documented and stored in the build repository 263. In someembodiments, the test results are stored with the same version number ofthe artifacts 285 produced during the build. This allows the testresults to be correlated with particular builds. If, during the testing,the customize appliance fails any of the tests, the developers 225 andthe build manager 237 are informed of the failure, and the nature of thefailure. The developers 225 and the build manager 237 may be informed bye-mail, text message, instant message, or by any other method compatiblewith embodiments of the disclosure. In some embodiments, the testfailure information may include the version number for the build.

In some embodiments, each virtual machine forming the cloud appliancemay be unit tested independently, before the cloud appliance is testedas a whole. In some embodiments, only a portion of a cloud appliancecomprising a single virtual machine is built at this stage. Each portionof the cloud appliance comprising a single virtual machine is thentested in the test environment server 250. If the tests on the aboveportion of the cloud appliance are successful, then this portion of thecloud appliance is deployed. Thus, for example, the cloud appliance 100comprises four virtual machines. Any one of these virtual machines canbe compiled and customized individually. So long as the interfacesbetween the virtual machines do not change, the individual virtualmachines can be released independently.

When testing is complete on the cloud appliance, the cloud appliance canbe deployed in the test environment server or in any other server sothat the developers 225 can observe and continue to test the final cloudappliance. In some embodiments, the continuous integration server 235automatically deploys any build that passes all tests into anenvironment for further testing. The continuous integration server 235may also copy the artifacts 285 for a successful build into a stagingrepository 265. The artifacts 285 in the staging repository 265 alsoallow a software development team to share with other teams thecomponents that have been developed. Further, the artifacts 285 in thestaging repository 265 may be used by quality assurance and releaseteams to produce a customer release that is packaged and placed into therelease repository. The package data may be in the form of, for example,a .OVA file, a .ZIP file, or any other file, directory structure, orformat compatible with embodiments of the disclosure.

In some embodiments, the continuous integration server 235 is adapted torun scripts after a build and test finishes. Thus, the script can bedeveloped to deploy the application to a live test server that alldevelopers and testers can use. Further, the scripts run after the buildand test is complete, allow for continuous deployment, in which thesoftware is deployed directly into production and to customer, after theautomated tests to prevent defects or regressions.

Automatically deploying the built using continuous deployment has anumber of advantages for the customer of the cloud appliance. Forexample, once the customer has purchased or licensed the cloudappliance, new versions of the cloud appliance that add features orcorrect errors in the cloud appliance are immediately available fordownload by the customer. The continuous deployment process run by thecontinuous integration server 235 may automatically inform customers ofnew versions of the cloud appliance. A second advantage for the customeris that when the customer purchases or licenses the cloud appliance thecustomer is able to receive immediately the most up-to-date copy of thecloud appliance stored in the release repository 270. In someembodiments, the cloud appliance may include features that allow thecloud appliance to automatically check for updates in the releaserepository, and download and install those updates automatically.

FIG. 5A-D illustrate a method for building a cloud appliance, forexample, cloud appliance 100, according to an embodiment. The methodbegins at step 505. At step 505, the source code script, and supportfile changes are committed into a source code management server, forexample, source code management server 205. The changes may be committedby one or more developers working on the software development. When thechanges are committed the method proceeds to step 510.

At step 510, changes to artifacts, for example, artifacts 285 in thirdparty or open source repositories are committed. The third party or opensource repositories may be on site repositories, repositories availableon another computer network, or repositories available on the Internet.When changes to artifacts in third party or open source repositorieshave been committed the method proceeds to step 515.

At step 515, the continuous integration server is triggered to build thecloud appliance. The build can be triggered manually by an operator. Thebuild can be triggered according to a schedule, for example, once perday. The build can be triggered by a commit or combination of commits bydevelopers. The build may be triggered by any combination of the abovemethods. When the continuous integration server has been triggered themethod proceeds to step 520.

At step 520, the continuous integration server assigns the build job toone or more build managers, for example, build managers 237 and startsthe build job or jobs. The build managers may be assigned according tothe type of source code to be build, for example, MSBuilder beingassigned to build Visual Studio files, and Maven assigned to build Javafiles. In some embodiments, the build managers may be assigned accordingto workload. When the assignment of build managers is complete, themethod proceeds to step 525.

At step 525, the assigned build manager downloads project scripts andother support files from the source code management repository andexecutes the build process. When the download is complete the methodproceeds to step 530.

At step 530, the assigned build manager compiles source files to formartifacts and stores the artifacts in the build repository. In someembodiments, the build manager may assign version numbers to theartifacts based on version numbers for the source code downloaded. Whenthe compilation is complete the method proceeds to step 532.

At step 532, a determination is made as to whether the compilations weresuccessful. If any compilation failed, the method proceeds to step 533,where the failed compilation or compilations are reported to thedevelopers and the method terminates. If the compilations weresuccessful, the method proceeds to optional step 535.

At step 535, unit test are optionally performed on applications filesand other artifacts formed in the compile process. The unit tests areperformed by installing and executing the artifacts in a testenvironment server, or other server. The tests are run according to testscripts, for example, test scripts 220 detailed in the project scriptsfor the project and downloaded from the source code managementrepository. When the optional tests are complete, the method proceeds tostep 537.

At step 537, a determination is made as to whether the unit tests weresuccessful. If any unit test failed, the method proceeds to optionalstep 538, where the failed unit test or tests are reported to thedevelopers and the method terminates. If the compilations weresuccessful, the method proceeds to step 540.

At step 540, dependencies are downloaded such as setup.exe programs forsoftware that are to be installed on virtual machines of the cloudappliance. When the dependencies have been downloaded, the methodproceeds to step 545.

At step 545, one or more virtual machines are created from virtualmachine templates. The virtual machines may be created on a hypervisorof a server or a hypervisor of a test environment server, for example,test environment server 250. When the virtual machines have beencreated, the method proceeds to step 550.

At step 550, the one or more virtual machines are customized to createone or more customized virtual machines for the cloud appliance byinstalling or running the downloaded dependencies and compiled sourcefiles, on the corresponding virtual machines. When the virtual machineshave been customized, the method proceeds to step 555.

At step 555, the customized virtual machines are converted to an archivefile and the archive file is stored in the build repository, forexample, build repository 263. The archive file may, for example, a .OVAfile. When the archive file has been stored in the repository, themethod proceeds to step 560.

At step 560, the customized virtual machines are deployed to the testenvironment server, for example, test environment server 250. When thecustomized virtual machines have been deployed in the test environmentserver, the method proceeds to step 565.

At step 565, the customized virtual machines are tested using the testenvironment server. The continuous integration server, request testsspecified in the build script for the cloud appliance to be performed bythe test environment server. When the tests are complete the methodproceeds to step 567.

At step 567, a determination is made as to whether the unit tests weresuccessful. If any unit test failed, the method proceeds to step 568,where the failed unit test or tests are reported to the developer andthe method terminates. If the compilations were successful, the methodproceeds to step 570.

At step 570, the tested customized virtual machines are store as thearchive file in a staging repository, for example, staging repository265. The staging repository allows other teams developing software andsystems to deploy and use the cloud appliance, to test whether the cloudappliance is compatible with systems the other teams have developed.Further, the staging repository allows deployment teams to gain accessto the cloud appliance, so that they can evaluate the cloud appliancefor release to clients and complete any packaging before release. Whenthe development teams are satisfied that the card appliance is ready forrelease to clients, the method proceeds to step 575.

At step 575, the tested customized virtual machines are stored to arelease repository, for example, release repository 270. At step 580,the tested customized virtual machines are deployed to a customer.

FIG. 6 illustrates a method for generating version numbers for artifactsin a build process according to an embodiment. The method begins at step605. At step 605, a continuous integration server, for example,continuous integration server 235, downloads project scripts and othersupport files from the source code management repository, for example,source code management repository 222 and executes the build process.When the downloads are complete the method proceeds to step 610.

At step 610, the continuous integration server assigns a build job witha product version number to a build manager, for example, build manager237 and starts the build job. When the build job has been started, themethod proceeds to step 615.

At step 615, the build manager identifies the source code version numberfor the build from the source code management repository. As discussedabove, the code version number for the source code is maintained by thesource code management repository server based on commits by developers.Each commit causes the source code management repository server togenerate a new version number, and to store the source code under thatversion number. In some embodiments, the build manager may also identifyversion numbers for items in the build from third-party repositories andopen source software repositories. When the version numbers have beenidentified, the method proceeds to step 620.

At step 620, the build manager combines the product version number withthe source code version number to form an artifact version number. Theproduct version number and the source code version number may becombined in any manner discussed above to form the artifact versionnumber. In some embodiments, the artifact version number is acombination of the product version number, and the source code versionnumber. In some embodiments, the artifact version number is acombination of the product version and the version numbers for anythird-party repositories or open-source software repositories used inthe build. When the artifact version number has been formed, the methodproceeds to step 625.

At step 625, the build manager compiles source files to form artifactsand stores the artifacts in the build repository under the artifactversion number.

FIG. 7 illustrates a method for generating meta-data for artifacts in abuild process according to an embodiment. The method begins at step 705.At step 705, a continuous integration server, for example, continuousintegration server 235, downloads project scripts and other supportfiles from the source code management and artifact repositories andexecutes the build process. When the downloads are complete the methodproceeds to step 710.

At step 710, the continuous integration server assigns the build job toa build manager and starts the build job or jobs.

At step 715, the build manager, for example, build manager 237identifies meta-data files from the artifact repository, third partyrepositories and open source repositories associated with the files andartifacts for the build. When the meta-data files have been identifiedthe method proceeds to step 720.

At step 720, the build manager combines information in the meta-datafiles to form artifact meta-data files for artifacts generated in thebuild and a build meta-data file for the build. As discussed above, anydocumentation, resource requirements, license requirements, or any otherinformation for the artifacts or source code compatible with embodimentsof the disclosure may be placed in meta-data for the source code orartifacts. This meta-data information may be combined in any usefulmanner to indicate the documentation, resource requirements, licenserequirements, etc. for the artifacts formed in the build and the buildas a whole. When the information has been combined to form meta-datafiles for the artifacts generated and the build, the method proceeds tostep 725.

At step 725, the build manager compiles source files to form artifactsand stores the artifacts with the corresponding artifact meta-data filesand the build meta-data file in the build repository.

The methods described above are merely exemplary. The order of themethod steps may be changed, steps may be omitted, or additional stepsmay be inserted before, between, or after the method steps describedabove.

FIG. 8 illustrates a general computer architecture on which the presentembodiments can be implemented and has a functional block diagramillustration of a computer hardware platform that includes userinterface elements. The computer may be a general-purpose computer or aspecial purpose computer. The computer 800 can be used to implement anycomponents of the system 200 for continuous integration. For example,the source code management server 205, the continuous integration server235, the build manager 237, the test environment server 250, and theartifact repository server can all be implemented on a computer such ascomputer 800, by using the hardware, software program, firmware, or acombination of these components of the computer 800. Although only onecomputer 800 is shown, for convenience, the computer functions relatingto single sign on may be implemented in a distributed fashion on anumber of similar platforms, to distribute the processing load.

The computer 800, for example, includes COM ports 850 connected to andfrom a network to facilitate data communications. The computer 800 alsoincludes a central processing unit (CPU) 820, in the form of one or moreprocessors, for executing program instructions. The exemplary computerplatform includes an internal communication bus 810, program storage anddata storage of different forms, for example, disk 870, read only memory(ROM) 830, or random access memory (RAM) 840, for various data files tobe processed and/or communicated by the computer, as well as possiblyprogram instructions to be executed by the CPU. The computer 800 alsoincludes an I/O component 860, supporting input/output flows between thecomputer and other components such as user interface elements 880. Thecomputer 800 may also receive programming and data via networkcommunications.

Hence, aspects of the methods and systems for continuous integrationaccording to an embodiment, as discussed above, may be embodied inprogram elements. Program aspects of the embodiments may be thought ofas “products” or “articles of manufacture” typically in the form ofexecutable code and/or associated data that is carried on or embodied ina type of machine-readable medium. Tangible non-transitory “storage”type media include any or all of the memory or other storage for thecomputers, processors or the like, or associated modules thereof, suchas various semiconductor memories, tape drives, disk drives and thelike, which may provide storage at any time for the program elements.

All or portions of the program elements may at times be communicatedthrough a network such as the Internet or various othertelecommunication networks. Such communications, for example, may enableloading of the software from one computer or processor into another, forexample, from a management server or host computer into the hardwareplatform(s) of a computing environment or other system. Other types ofmedia that may carry the program elements include optical, electricaland electromagnetic waves, such as used across physical interfacesbetween local devices, through wired, and optical networks and overvarious wireless links. The physical elements that carry such waves,such as wired or wireless links, optical links, or the like, also may beconsidered as media carrying the software. As used herein, unlessrestricted to tangible “storage” media, terms such as computer ormachine “readable medium” refer to any medium that participates inproviding instructions to a processor for execution.

Hence, a machine-readable medium may take many forms, including but notlimited to, a tangible storage medium, a carrier wave medium, orphysical transmission medium. Non-volatile storage media include, forexample, optical or magnetic disks, such as any of the storage devicesin any computer(s) or the like, which may be used to implement thesingle sign on system or any of the components of the single sign onsystems as shown in the drawings. Volatile storage media include dynamicmemory, such as a main memory of such a computer platform. Tangibletransmission media include coaxial cables, copper wire and fiber optics,including the wires that form a bus within a computer system.Carrier-wave transmission media can take the form of electric orelectromagnetic signals, or acoustic or light waves such as thosegenerated during radio frequency (RF) and infrared (IR) datacommunications. Common forms of computer-readable media, therefore,include, for example, a floppy disk, a flexible disk, hard disk, solidstate disk magnetic tape, any other magnetic medium, a CD-ROM, DVD,Blue-Ray™ or DVD-ROM, any other optical medium, punch cards paper tape,any other physical storage medium with patterns of holes, a RAM, a PROMand EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrierwave transporting data or instructions, cables or links transportingsuch a carrier wave, or any other medium from which a computer can readprogramming code and/or data. Many of these forms of computer readablemedia may be involved in carrying one or more sequences of one or moreinstructions to a processor for execution.

The embodiments described above are intended to be exemplary. Oneskilled in the art recognizes that numerous alternative components andembodiments that may be substituted for the particular examplesdescribed herein and still fall within the scope of the invention.

What is claimed is:
 1. A system having a processor for generatingmeta-data for a product comprising: an artifact repository that storesfirst artifacts for building the product, wherein the product comprisesa virtual machine operable on a cloud appliance, the artifact repositorystoring first meta-data for one or more of the first artifacts; and abuild manager that builds second artifacts for the product from sourcecode and one or more of the first artifacts based on information in aproject script, the build manager adapted to combine the first meta-datafor each of the one or more of the first artifacts used to build thesecond artifact to form second meta-data for each of the secondartifacts, the second meta-data formed by combining source codemeta-data for the source code used to build the second artifact with thefirst meta-data descriptive of the first artifacts used to build thesecond artifact.
 2. The system according to claim 1, wherein the firstmeta-data comprises license information, and the second meta-data isformed by the build manager concatenating the license information fromeach first artifact specified in the project script, and deletingduplicate license information from the second meta-data.
 3. The systemaccording to claim 2, wherein the build manager is adapted to calculatea license fee for the product based on the second meta-data.
 4. Thesystem according to claim 1, wherein the first meta-data comprisesresource information, and the second meta-data is formed by the buildmanager selecting a largest value for the resource information fromamong the first artifacts specified in the project meta-data.
 5. Thesystem according to claim 1, wherein the first meta-data comprisesartifact-specific information, and the second meta-data is formed by thebuild manager combining values for the artifact-specific informationfrom each of first artifacts specified in the project meta-data andperforming operations on the artifact-specific information from each ofthe first artifacts.
 6. The system according to claim 5, wherein theperformed operations comprise excluding duplicate information from thefirst meta-data.
 7. A method for generating meta-data for a productcomprising: an artifact repository storing first artifacts for buildingthe product and first meta-data for one or more of the stored firstartifacts, wherein the product comprises a virtual machine operable on acloud appliance; a build manager building second artifacts for theproduct from source code and one or more of the first artifacts based oninformation in a project meta-data; and the build manager combining thefirst meta-data for each of the one more of the first artifacts used tobuild the second artifact and source code meta-data for source code toform second meta-data for each of the second artifacts.
 8. The methodaccording to claim 7, wherein the first meta-data comprises licenseinformation, and the build manager forming the second meta-data byconcatenating the license information from each first artifact specifiedin the project script, and deleting duplicate license information fromthe second meta-data.
 9. The method according to claim 8, wherein thebuild manager is adapted to calculate a license fee for the productbased on the second meta-data.
 10. The method according to claim 7,wherein the first meta-data comprises artifact-specific information, thebuild manager forming the second meta-data by performing operations, onthe artifact-specific information from the first artifacts specified inthe project meta-data.
 11. The method according to claim 10, wherein theperforming operations include at least one of selecting a maximum valueselecting a minimum value, adding averaging, or concatenating theartifact-specific information from among the first artifacts specifiedin the project meta-data.
 12. The method according to claim 7, whereinthe first meta-data comprises documentation information, and the buildmanager forming the second meta-data by concatenating the documentationinformation from each first artifact specified in the project script,and deleting duplicate documentation information from the secondmeta-data.
 13. A machine-readable tangible and non-transitory mediumwith information recorded thereon, wherein the information, when read bya machine, causes the machine to perform the following steps: storing,by an artifact repository, first artifacts for building a product andstoring, by the artifact repository, first meta-data for one or more ofthe stored first artifacts, wherein the product comprises a virtualmachine operable on a cloud appliance; building, by a build manager,second artifacts for the product from source code and one or more of thefirst artifacts based on information in project meta-data; combining, bythe build manager, the first meta-data for each of the one or more ofthe first artifacts used to build the second artifact and source codemeta-data for the source code to form second meta-data for each of thesecond artifacts.
 14. The machine-readable medium according to claim 13,wherein the first meta-data comprises license information, and the buildmanager forming the second meta-data by concatenating the licenseinformation from each first artifact specified in the project script,and deleting duplicate license information from the second meta-data.15. The machine-readable medium according to claim 14, wherein the buildmanager is adapted to calculate a license fee for the product based onthe second meta-data.
 16. The machine-readable medium according to claim13, wherein the first meta-data comprises resource information, thebuild manager forming the second meta-data by selecting a largest valuefor the resource information from among the first artifacts specified inthe project script.
 17. The machine-readable medium according to claim13, wherein the first meta-data comprises resource information, and thebuild manager forming the second meta-data by adding values for theresource information from each of first artifacts specified in theproject script.